package duotai;

public abstract class Pet {
    private String name;
    private int age;
    private  int health;
private int type;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getHealth(int i) {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }
    public abstract void eat(Pet pet);
}
